<!--{if !$_G['inajax']}-->
<!--{if $_G['setting']['bbclosed'] && !$_G['adminid']}-->
<!--{template common/header_simple_start}-->
<script src="static/bootstrap/js/bootstrap.min.js?{VERHASH}"></script>
<!--{template common/header_simple_end}-->
<header class="fixed-top lyear-layout-header">
  <nav class="navbar sticky-top navbar-dark navbar-expand-lg navbar-light">
    <div class="container-fluid">
      <!--{template header_left}-->
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarScroll">
			<!--{template header_search}-->
			<!--{template header_right}-->
      </div>
    </div>
  </nav>
</header>
<!--{else}-->
<!--{template common/header_simple}-->
<style>
	html,body{
		overflow: hidden
	}
</style>
<!--{/if}-->
<!--{if !$param[login]}-->
<!--{else}-->
<div class="" id="main_succeed" style="max-width:500px;margin:0 auto;display: none">
  <div class="alert_right">
    <h5 id="succeedmessage"></h5>
    <p id="succeedlocation" class="alert_btnleft"></p>
    <p class="alert_btnleft"><a id="succeedmessage_href">{lang message_forward}</a></p>
  </div>
</div>
<div class="well" id="main_message">    
<!--{/if}-->
<!--{else}-->
<!--{template common/header_ajax}-->
<!--{/if}-->
<!--{if $param[msgtype] == 1 || $param[msgtype] == 2 && !$_G[inajax]}-->
  <div id="ct" class="text-center" style="display: flex;align-items: center;justify-content: center;min-height: -webkit-fill-available;margin: 0;text-align: center;">
			<div id="messagetext">
        <img src="<!--{if !$_G['setting']['bbclosed']}-->{eval echo $_G['setting']['sitelogo']?'index.php?mod=io&op=thumbnail&size=small&path='.dzzencode('attach::'.$_G['setting']['sitelogo']):'static/image/common/logo.png';}<!--{else}-->static/image/common/logo.png<!--{/if}-->">
				<h4>$show_message</h4>
				<!--{if !$_G['setting']['bbclosed']|| !$_G['adminid'] ==0}-->
				<!--{if $url_forward}-->
        <!--{if !$param[redirectmsg]}-->
          <button class="btn btn-primary" onclick="location.href='$url_forward';return false;" >立即跳转（<span class="num">3</span>s）</button>
          <button class="btn btn-primary" onclick="location.href='$_G['siteurl']';return false;" >首页</button>
          <!--{else}-->
          <button class="btn btn-primary" onclick="location.href='$url_forward';return false;">{lang return_to_the_naxt_level}（<span class="num">3</span>s）</button>
          <button class="btn btn-primary" onclick="location.href='$_G['siteurl']';return false;" >首页</button>
        <!--{/if}-->
				<!--{elseif $allowreturn}-->
				<script type="text/javascript">
					if(history.length > (BROWSER.ie ? 0 : 1)) {
						document.write('<a class="btn btn-primary" href="javascript:history.back()">返回</a> <a class="btn btn-primary" href="$_G['siteurl']">首页</a>');
					} else {
						document.write('<a class="btn btn-primary" href="$_G['siteurl']">首页</a>');
					}
					
				</script>
				<!--{/if}-->
				<!--{/if}-->
			</div>
			<!--{if $param[login]}-->
				
			<!--{/if}-->
		<script type="text/javascript">
      jQuery(document).ready(function(){
					function jump(cont){						
						window.setTimeout(function(){
							cont--;
							if(cont>0){
								$('.num').text(cont);
								jump(cont);
							}
						},1000)
					}
					jump(3);
				});
		</script>
  </div>
  <!--{elseif $param[msgtype] == 2}-->
  <div class="modal-header">
    <h4 class="modal-title">{lang board_message}</h4>
		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
  </div>
  <div class="modal-body">
    <div class="$alerttype">$show_message</div>
  </div>
  <div class="modal-footer">
    <!--{if $param['closetime']}-->
    <span class="btn btn-primary text-muted">$param['closetime'] {lang message_closetime}</span>
    <!--{elseif $param['locationtime']}-->
    <span class="btn btn-primary text-muted">$param['locationtime'] {lang message_locationtime}</span>
    <!--{/if}-->
    <!--{if $param[login]}-->
    <button type="button" class="btn btn-info" onclick="hideWindow('$_GET['handlekey']');showWindow('login', 'user.php?mod=login&action=login');"><strong>{lang login}</strong></button>
    <!--{if !$_G['setting']['bbclosed']}-->
    <button type="button" class="btn btn-info" onclick="hideWindow('$_GET['handlekey']');window.open('user.php?mod=rigister');"><em>$_G['setting']['reglinkname']</em></button>
    <!--{/if}-->	
    <!--{/if}-->
    <button type="button"  data-bs-dismiss="modal" class="btn btn-outline-info"><strong>{lang close}</strong></button>
  </div>
<!--{else}-->$show_message<!--{/if}-->
<!--{if !$_G['inajax']}-->
		</div>
	<!--{template common/footer}-->
<!--{else}-->
	<!--{template common/footer_ajax}-->
<!--{/if}-->
